<?
if (!defined('SMF'))
	die('Hacking attempt...');

global $ibank_interest, $ibank_loaninterest;

$exponinter = mypw($ibank_interest + 1, $multiplier);
$expoloan = mypw($ibank_loaninterest + 1, $multiplier);

$update = $smcFunc['db_query']('', '
	UPDATE {raw:db_ibank_accounts}
	SET balance = balance * {float:exponinter},
		loan = loan * {float:expoloan}',
	array(
		'db_ibank_accounts' => $dbtables['ibank_accounts'],
		'exponinter' => $exponinter,
		'expoloan' => $expoloan
	)
);
		
$message .= '<p>All IGB accounts updated (' . $multiplier . ' times).</p>';
?>
